import request from '@/utils/request'

// 查询排班列表
export function listAfScheduling(query) {
  return request({
    url: '/security/afScheduling/list',
    method: 'get',
    params: query
  })
}

// 查询排班详细
export function getAfScheduling(id) {
  return request({
    url: '/security/afScheduling/' + id,
    method: 'get'
  })
}

// 新增排班
export function addAfScheduling(data) {
  return request({
    url: '/security/afScheduling',
    method: 'post',
    data: data
  })
}

// 修改排班
export function updateAfScheduling(data) {
  return request({
    url: '/security/afScheduling',
    method: 'put',
    data: data
  })
}

// 删除排班
export function delAfScheduling(id) {
  return request({
    url: '/security/afScheduling/' + id,
    method: 'delete'
  })
}
